package com.dm.decorator.demo01;

public class BorderDecorator extends Decorator{

	public int borderWidth;
	
	public BorderDecorator(VisualComponent visualComponent,int borderWidth){
		super(visualComponent);
		this.borderWidth = borderWidth;
	}
	
	public void drawBorder(){
		System.out.println("BorderDecorator.drawBorder()");
	}
	
	@Override
	public void draw() {
		visualComponent.draw();
		this.drawBorder();
	}

}
